package com.yueyang.sojourn.server.service.sojourn.geolocation;

import com.yueyang.sojourn.server.model.po.SojournGeoLocation;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author yemingxing
 * @summary
 * @Copyright (c) 2020, Yueyang Group All Rights Reserved.
 * @since 2020-02-15 19:55
 */
@Service
public class SojournGeoLocationService {

    @Resource
    private SojournGeoLocationMapper sojournGeoLocationMapper;


    public int deleteByPrimaryKey(Long id) {
        return sojournGeoLocationMapper.deleteByPrimaryKey(id);
    }


    public int insert(SojournGeoLocation record) {
        return sojournGeoLocationMapper.insert(record);
    }


    public int insertSelective(SojournGeoLocation record) {
        return sojournGeoLocationMapper.insertSelective(record);
    }


    public SojournGeoLocation selectByPrimaryKey(Long id) {
        return sojournGeoLocationMapper.selectByPrimaryKey(id);
    }


    public int updateByPrimaryKeySelective(SojournGeoLocation record) {
        return sojournGeoLocationMapper.updateByPrimaryKeySelective(record);
    }


    public int updateByPrimaryKey(SojournGeoLocation record) {
        return sojournGeoLocationMapper.updateByPrimaryKey(record);
    }

    //====================================basic service===============================================//

    public SojournGeoLocation selectByProjectId(long projectId) {
        return sojournGeoLocationMapper.selectByProjectId(projectId);
    }

    public void invalidByProjectId(long projectId) {
        sojournGeoLocationMapper.invalidByProjectId(projectId);
    }
}
